export class GameData {
    private static instance: GameData;
    public score: number = 0; //分数
    public level: number = 1; //关卡

    private constructor() { }

    public static getInstance(): GameData {
        if (!GameData.instance) {
            GameData.instance = new GameData();
        }
        return GameData.instance;
    }
}